package com.yxboot.modules.call.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * X号码表
 * @author exchenming
 * @date 2025-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("x_no_qs")
@Schema(name ="XNoQs", description = "X号码表")
public class XNoQs implements Serializable {
	@Serial
	private static final long serialVersionUID = 1L;

	/**
	* 唯一标识
	 */
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Integer id;

	/**
	* X号码
	 */
    @TableId(value = "xno", type = IdType.AUTO)
    @Schema(description = "X号码")
	private String xno;

	/**
	* 省份名称
	 */
	@Schema(description = "省份名称")
	private String provinceName;

	/**
	* 省份CODE
	 */
	@Schema(description = "省份CODE")
	private String provinceCode;

	/**
	* 城市名称
	 */
	@Schema(description = "城市名称")
	private String cityName;

	/**
	* 城市CODE
	 */
	@Schema(description = "城市CODE")
	private String cityCode;

	/**
	* 开通时间(yyyy-MM-dd HH:mm:ss)
	 */
	@Schema(description = "开通时间(yyyy-MM-dd HH:mm:ss)")
	private String openTime;

    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private String createTime;

	/**
	* 是否使用 Y-是 N-否
	 */
	@Schema(description = "是否使用 Y-是 N-否")
	private String isUse;

	/**
	* 是否锁定( Y-是 N-否)
	 */
	@Schema(description = "是否锁定( Y-是 N-否)")
	private String isLock;

	/**
	* 是否退订( Y-是 N-否)
	 */
	@Schema(description = "是否退订( Y-是 N-否)")
	private String isCancel;

	/**
	* 退订日期(yyyy-MM-dd)
	 */
	@Schema(description = "退订日期(yyyy-MM-dd)")
	private String cancelTime;

    @TableField(exist = false)
    String openStartTime;
    @TableField(exist = false)
    String openEndTime;

}